package lab02.test28;

import java.util.InputMismatchException;
import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        double a=0;
        double s=0;

        try {
            Scanner scanner=new Scanner(System.in);
            a=scanner.nextDouble();

        }catch (InputMismatchException e){
            s=a*a*3.14;
            System.out.println("输入的数据类型不是double");
    }finally {
            System.out.println("圆的面积是："+s);
        }
        }
}
